package com.dc.adaptor.transport.addressconvertor;

import com.dc.adaptor.transport.TransportMeta;
import com.dc.adaptor.transport.ws.app.WsTcissMeta;

/**
* @ClassName: WsTcissAddressConvertor
* @Description: TODO
* @author zhangbinp
* @date Aug 23, 2012 5:05:46 PM
*/
public class WsTcissAddressConvertor implements AddressConvertor<TransportMeta>{

	@Override
	public String getAddress(TransportMeta meta) {
		WsTcissMeta appMeta =  (WsTcissMeta)meta;
		return appMeta.getIp();
	}

	@Override
	public TransportMeta getMeta(final String address) {
		return new WsTcissMeta(){
			@Override
			public String getIp() {
				return address;
			}
			
		};
	}

}
